﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customers.master" AutoEventWireup="true" CodeFile="HangSanXuat.aspx.cs" Inherits="HangSanXuat" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" >
    <asp:DataList ID="DataList1" runat="server" DataSourceID="AccessDataSource1" DataKeyField="MaSP" RepeatColumns="4" RepeatDirection="Horizontal">
        <ItemTemplate>
            <div class="dtList">
               <a href="ChiTietSanPham.aspx?TenSP=<%# Eval("TenSP") %>&q=0">
            <asp:Image ID="Image1" runat="server" Height="190px" 
                ImageUrl='<%# Eval("Hinh", "{0}") %>' Width="190px" /></a>
            <br />
            <asp:Label Text='<%# Eval("TenSP") %>' runat="server" ID="TenSPLabel"  ForeColor="#0066FF" Font-Bold="True" CssClass="tenSP"/><br />
            <asp:Label Text='<%# Eval("TinhTrang") %>' runat="server" ID="TinhTrangLabel" ForeColor="Gray" Font-Size="12px" /><br />
            <asp:Label Text='<%# Eval("Gia") %>' runat="server" ID="GiaLabel" ForeColor="Red" Font-Size="12px" /><br /><br />
            <img src="images/Like.png" height="15px" width="15px" style="vertical-align:bottom" />
            <asp:Label Text='<%# Eval("LikeSanPham") %>' runat="server" ID="LikeSanPhamLabel"   ForeColor="#04AEDA" Font-Bold="true" />
            <img src="images/Viewers.png" height="15px" width="15px" style="vertical-align:bottom" />
            <asp:Label Text='<%# Eval("XemSanPham") %>' runat="server" ID="XemSanPhamLabel" ForeColor="#04AEDA" Font-Bold="true" /><br /><br />

                 </div>
        </ItemTemplate>
    </asp:DataList>

    <asp:AccessDataSource runat="server" ID="AccessDataSource1" DataFile="~/App_Data/Data.mdb" SelectCommand="SELECT [MaSP], [TenSP], [TinhTrang], [Gia], [LikeSanPham], [XemSanPham], [Hinh] FROM [SanPham] WHERE ([HangSX] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter QueryStringField="HangSX" Name="HangSX" Type="String"></asp:QueryStringParameter>
        </SelectParameters>
    </asp:AccessDataSource>
       
</asp:Content>

